import get from '@dfeidao/atom-web/local/get';
import fire from '@dfeidao/atom-web/msg/fire';
import error from '@dfeidao/atom-web/msgbox/error';
import { IFeidaoAiBrowserComponent } from '@dfeidao/web/interfaces';

export default async function a003(fd: IFeidaoAiBrowserComponent) {

	//  修改弹窗
	const _id = get(fd, '_id');
	const _on = get(fd, '_no');
	const name = get(fd, 'name');
	get(fd, 'create_time');
	const add = get(fd, 'add');
	if (add) {
		fire('zj-000004', 'ec-001', { _no: _on, _id, name });
		return;
	} else {
		error("请选择一行数据");
	}
}
